package learning;

public class GeneralHebbianRule implements LearningRule{

	private double threshold;
	
	public GeneralHebbianRule(double threshold)
	{
		this.threshold=threshold;
	}
	
	public double getDeltaWeight(double presynaptic, double postsynaptic, double learningRate,double weight,double inError) {
		return learningRate*(presynaptic-threshold)*(postsynaptic-threshold);
	}
}
